from selenium.webdriver.common.by import By

from demo.weworkSelenium.page.base_page import BasePage


class ImportUser(BasePage):

    def import_user(self, path=''):
        # print(path)
        # self.find((By.LINK_TEXT, '上传文件')).send_keys(path)
        #上传文件的时候需要定位input文件，不能定位a/span标签，否则用例不会报错
        self.find((By.CSS_SELECTOR, '.ww_fileImporter_fileContainer_uploadInputMask')).send_keys(path)

